home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC]
/
NeXTSTEP 3.3 Dev Intel.iso
/
NextDeveloper
/
Source
/
GNU
/
libg++
/
libio
/
stdio
/
getw.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-02-15
|
222b
|
14 lines
#include "libioP.h"
#include "stdio.h"
int
getw(fp)
FILE *fp;
{
int w;
_IO_size_t bytes_read;
COERCE_FILE(fp);
bytes_read = _IO_sgetn (fp, (char*)&w, sizeof(w));
return sizeof(w) == bytes_read ? w : EOF;
}